package com.mindata.blockchain.block;

/**
 * 区块
 * 
 * @author wuweifeng wrote on 2018/2/27.
 */
public class Block {
	/**
	 * 区块头
	 */
	private BlockHeader blockHeader;
	/**
	 * 区块body
	 */
	private BlockBody blockBody;
	/**
	 * 该区块的hash
	 */
	private String hash;

	public BlockHeader getBlockHeader() {
		return blockHeader;
	}

	public void setBlockHeader(final BlockHeader blockHeader) {
		this.blockHeader = blockHeader;
	}

	public BlockBody getBlockBody() {
		return blockBody;
	}

	public void setBlockBody(final BlockBody blockBody) {
		this.blockBody = blockBody;
	}

	public String getHash() {
		return hash;
	}

	public void setHash(final String hash) {
		this.hash = hash;
	}

	@Override
	public String toString() {
		return "Block{" + "blockHeader=" + blockHeader + ", blockBody=" + blockBody + ", hash='" + hash + '\'' + '}';
	}
}
